{include template('header')}
    <div class="navbottom">
    <div class="l">
    <a href="./">首页</a>&nbsp;»&nbsp;<a href="{url index.php?m=category&id=$article[cid]}">{$article['catename']}</a>&nbsp;»&nbsp;<a>{$article['title']}</a>
   </div>
      <div class="r"><a href="/"  rel="external nofollow">给我们留言</a>|<a onmouseover="mopen('history');" onmouseout="mclosetime()" class="history red"  rel="external nofollow">历史记录</a></div>
      <div id="history" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"></div>
      <script src="{THEME_URL}js/history_new.js"></script>
 	<script type="text/javascript" >AddHistory();</script>
    </div>
  
<div class="wrap">
<div class="main l">
			<div class="article article_detail" id="article-{$article['aid']}">
			
			  <div class="art_title clearfix">
				<h1>{$article['title']}</h1>
			  </div>
			  {if $article['tags']}<div class="article-tag"><p><strong>本文标签</strong>：{$article['tagname']}</p></div>{/if}
				<?php 
				if (!empty($article['password']) && $article['uid'] != $_G['uid'] && !ISADMIN) {
				$pass = getGP('article_passwd'.$id,'c');
				if ($pass != $article['password']) {
					$article['content'] = '<form method="post" action="javascript: article_password('.$article['aid'].');"><div><h4>加密日志</h4><p>这篇日志已被密码保护，请输入密码后查看。<br />密码：<input type="password" name="passwd'.$article['aid'].'" size="22" /> <input type="submit" name="submit'.$article['aid'].'" value="提交" /></p></div><div id="errormsg">&nbsp;</div></form>';
				}
				}
				?>
				<div class="art-content"><?=ubb_decode($article['content'])?></div>
				<div class="art_info clearfix">
				<p class="info1">
				<small style="padding-left:0;">时间:</small>{gdate('Y-m-d',$article['dateline'])}
				<small>栏目:</small><a rel="category tag" title="查看 {$article['catename']} 中的全部文章" href="{url index.php?m=category&id=$article[cid]}">{$article['catename']}</a> 
				<small>作者:</small>{$article['username']} 
				<small>评论:</small><a href="{url article.php?id=$article[cid]}#comments" target="_self">{$article['comments']}</a> 条				
				<small>阅读:</small>{$article['views']} 次		<small><a href="javascript:void(0);"  id="copythis">复制本文</a></small>						</p>
			  </div>
<div class="article-share">
	<span><a onclick="add_favorite('{$article['title']}');" href="javascript:;">收 藏</a></span>
	<span id="bdshare"><a href="javascript:void(0);">分 享</a></span>
	<span><a  href="{url article.php?id=$article[cid]}#comments" target="_self">评 论</a></span>
</div>
    
				<div class="article-tag"><p><strong>本文地址</strong>：<a href="{url article.php?id=$article[aid]}"  title="{$article['title']}">{$_G['settings']['siteurl']}/{url article.php?id=$article[aid]}</a> @ <a href="{$_G['settings']['siteurl']}" target="_blank" title="{$_G['settings']['subtitle']}">{$_G['settings']['sitename']}</a> &nbsp;&nbsp;&nbsp; [<a href="javascript:void(0);" id="copythisb">复制本文</a>]</p></div>
				<br/>
				<!--QQ邮件列表订阅嵌入代码-->
<script >
var nId = "2d66692d5199231f42920a128eb1a525e93dc6632110d939",nWidth="auto",sColor="light",sText="填写您的邮件地址，订阅最新的内容：" ;;
</script>
<script src="http://list.qq.com/zh_CN/htmledition/js/qf/page/qfcode.js" charset="gb18030"></script>
				</div>
				
	
      <div class="article svlist">
        <div  class="title4"><a target="_blank" href="{url index.php?m=category&id=$article[cid]}" class="r">更多</a>相关文章</div>
       <div>
      	        {php $refer_articles=get_category_contents($article['cid'],5);}
        <ul>
        {loop $refer_articles $refer_article}
		<li><a href="{url article.php?id=$refer_article[aid]}" target="_blank" title="{$refer_article['title']}">{$refer_article['title']}</a></li>
	{/loop}
		</ul>
      </div>
      </div>
      <!--/Commend-->
      <div class="article">
        <div class="title4">评论</div>
		{template comment}
      </div>
      <!--/Commend-->
      </div>
			{template left}
			<div class="clear"></div>
</div>
   <!--/wrap-->	
   <script type="text/javascript" src="{BASE_URL}static/script/jquery.zclip.min.js"></script>
   <script type="text/javascript" >AddHistory({$article['aid']},"{$article['title']}","{$article['catename']}","{url article.php?id=$article[cid]}");
   $(document).ready(function(){
   $('#copythis').zclip({
		path:'static/images/ZeroClipboard.swf',
		copy:'{$article[title]} {BASE_URL}{url article.php?id=$article[cid]} (出处: {$_G[settings][sitename]})',
		ctitle:'{$article[title]}',
		afterCopy:function(){  
			//CreateA('http://www.justhost.com/track/xk41czh'); 
	    }  
		});
   $('#copythisb').zclip({
		path:'static/images/ZeroClipboard.swf',
		copy:'{$article[title]} {BASE_URL}{url article.php?id=$article[cid]} (出处: {$_G[settings][sitename]})',
		ctitle:'{$article[title]}',
		afterCopy:function(){  
			//CreateA('http://www.justhost.com/track/xk41czh'); 
	    }  
		});
   });
   </script>
{include template('footer');}